-- GENERATED SPELL FOR [Frostwolf Shaman] --


function spell0_13284(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(21401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13284', 8276, 1)
end

function spell1_13284(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(12492,pUnit)
pUnit:RegisterEvent('Sorts_13284', 3000, 1)
end

function spell2_13284(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13284', 0, 1)
end

function Sorts_13284(pUnit, Event)
local choix_sorts_13284 = math.random(0, 2)
if choix_sorts_13284 == 0 then
pUnit:RegisterEvent('spell0_13284', 1, 1)
end
if choix_sorts_13284 == 1 then
pUnit:RegisterEvent('spell1_13284', 1, 1)
end
if choix_sorts_13284 == 2 then
pUnit:RegisterEvent('spell2_13284', 1, 1)
end
end

function mob13284_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13284', math.random(1500, 3000), 1)
end

function mob13284_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13284_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13284_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13284, 1, 'mob13284_Action')
RegisterUnitEvent(13284, 2, 'mob13284_Leave')
RegisterUnitEvent(13284, 3, 'mob13284_Kill')
RegisterUnitEvent(13284, 4, 'mob13284_Die')
